﻿// -----------------------------------------------------------------------------
// 园丁,是个很简单的管理系统
//  gitee:https://gitee.com/hgflydream/Gardener 
//  issues:https://gitee.com/hgflydream/Gardener/issues 
// -----------------------------------------------------------------------------

using Microsoft.AspNetCore.Components;

namespace Gardener.Weighbridge.Client.Pages.WeighingRecordView
{
    /// <summary>
    /// WeighingRecord编辑页
    /// </summary>
    public partial class WeighingRecordEdit : EditOperationDialogBase<WeighingRecordDto, Guid, WeighbridgeLocalResource>
    {
        private List<WeighbridgeConfigDto> weighbridgeConfigs = [];

        [Inject]
        private IWeighbridgeConfigService weighbridgeConfigService { get; set; } = default!;
        /// <summary>
        /// 页面初始化后
        /// </summary>
        protected override void OnInitialized()
        {
            base.OnInitialized();
        }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        protected override async Task OnDataLoadingAsync()
        {
            weighbridgeConfigs = await weighbridgeConfigService.GetAllUsable();

            await base.OnDataLoadingAsync();
        }
    }
}
